import 'element-ui/lib/theme-chalk/index.css'
import 'ag-grid-enterprise';
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import {default as api} from './utils/api'
import '@/permission' // 权限
import {hasPermission} from "./utils/hasPermission";
import echarts from 'echarts'
import 'echarts/map/js/china'
import utf8BufferSize from 'utf8-buffer-size'
import {Notification} from 'element-ui';
import MLoader from "vue-m-loader"
// import underscore from "underscore"
import '../static/css/iconfont/1.0.0/index.css' /* icofont*/
import 'v-contextmenu/dist/index.css'
// css
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
import '@/styles/index.scss' // global css
import '@/assets/library/font-awesome-4.7.0/css/font-awesome.min.css'
import i18n from './lang'
import "@/assets/fontIcon/iconfont.css"

Vue.use(MLoader);
// import FileUpload from 'vue-upload-component'
Vue.config.productionTip = false;
Vue.use(ElementUI, {
  size: 'medium', // set element-ui default size
  i18n: (key, value) => i18n.t(key, value)
})
// Vue.use(FileUpload);
Vue.prototype.$http = api;
Vue.prototype.$eventBus = new Vue();
Vue.prototype.hasRole = hasPermission
Vue.prototype.$echarts = echarts;
Vue.prototype.$utf8BufferSize = utf8BufferSize;
Vue.prototype.$notify = Notification;
// Vue.prototype.$FileUpload = FileUpload;
//mock模拟数据只在本地开发时候引用
// if(webConfig.devEnvironment == 'dev'){
//   require("./mock");
// }
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  i18n,
  components: { App },
  template: '<App/>'
})
